package com.lee.lease.web.app.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lee.lease.model.entity.RoomInfo;
import com.lee.lease.web.app.vo.room.RoomDetailVo;
import com.lee.lease.web.app.vo.room.RoomItemVo;
import com.lee.lease.web.app.vo.room.RoomQueryVo;

/**
* @author liubo
* @description 针对表【room_info(房间信息表)】的数据库操作Service
* @createDate 2023-07-26 11:12:39
*/
public interface RoomInfoService extends IService<RoomInfo> {


    IPage<RoomItemVo> findRoomItem(IPage<RoomItemVo> page, RoomQueryVo queryVo);

    /**
     *
     * @param page
     * @param id 公寓id
     * @return
     */
    IPage<RoomItemVo> findRoomItemByApartmentId(IPage<RoomItemVo> page, Integer id);

    /**
     *根据公寓id获取房间的详情
     * @param id 公寓id
     * @return
     */
    RoomDetailVo getDetailById(Integer id);

    RoomDetailVo getDetailById1(Integer id);
}
